<!DOCTYPE html>
<html lang="en">
  <head>
        <meta charset="utf-8">
        <title>编辑题目</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
		<load href= "__JS__/jshelper.js" /> 
		<script type="text/JavaScript">
			function blankedit(id,testid){
				window.location.href="__URL__/blankedit/id/"+id;
			}
			function blankdelete(id,testid){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/blankdelete');
					postwith('__URL__/blankdelete',{id:id});
				}
			}
			
			window.onload=show;
		</script>
		<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
	</head>
	<body>	
		<layout name="Auth:header" />
    	<div class="container-fluid">
     		<div class="row-fluid">
  			  <layout name="Auth:leftmenu" />
              	 <div class="span8">
                    <div class="hero-unit">
                  	<h1>填空题题库</h1>
					<p style="font-size:12px">
			当前位置：
			<a href='__APP__/index/index' class="nowpositionhref">主页</a>>
			<a href='__URL__/index' class="nowpositionhref">后台管理</a>>
			<a href='__URL__/choose1' class="nowpositionhref">测试管理</a>>
			<a href='__URL__/choose2' class="nowpositionhref">题库</a>>
			<a href='__URL__/blankadd' class="nowpositionhref">填空编辑</a>>
			填空题库
            	</p>
		</div>
		 <a href="__URL__/blankadd" class="btn btn-success">继续添加</a>
          <form method="get" action="__URL__/blankdetail" >
          <table>
          		<thead>
                	<tr>
                    	<th>
                        	  <input type="text" name="name" placeholder="题目">
                        </th>
                        <th>
                        	 <input type="text" name="nname" placeholder="编辑者">
                        </th>
                        <th>
                        	 <code>所属课程</code><select name="cname">
                              <option value =></option>
                              <volist name='cnlist' id='vo1'>
                                <option value =	{$vo1.name}>{$vo1.name}</option>
                              </volist>
                            </select>
                        </th>
                        <th>
                        	<input name="submit" type="submit" value="查询" class="btn btn-primary">
                        </th>
                    </tr>
                </thead>
          </table>
            
          </form>
			<!--显示题目-->
			
				<table   class="table table-striped table-bordered table-condensed" width="100%">
					<thead >
						<tr id="table_blank_show_title">
							<th style="width:150px">题目</th>
							<th style="width:150px">所属课程</th>
							<th style="width:150px">编辑者</th>
							<th style="width:50px">操作</th>
						</tr>
					</thead>
					<load href"__PUBLIC__/js/list_show.js">
					<input type='hidden' name='testid' value='{$testid}'>
					<tbody id="tab">
						<volist name='list' id='vo' >
							<tr id="table_blank_show">							
								<td style="width:250px;">{$vo.name}</td>
								<td style="width:120px;">{$vo.cname}</td><!--所属课程-->
								<td style="width:120px;">{$vo.nname}</td><!--所属课程-->
								<td style="display:none;">{$vo.id}</td>	<!--题目ID-->
								<td style="width:100px">
									<a href="javascript:blankedit('{$vo.id}','{$testid}')" class="btn btn-info">编辑</a>
									<!--<input type="button" name="blankedit"onClick="blankedit({$vo.id})" value="编辑">-->
									<a  href="javascript:blankdelete('{$vo.id}','{$testid}')" class="btn btn-danger">删除</a>
									<!--<input name="delete_blank" type="reset" onClick="blankdelete({$vo.id})" value="删除">-->
								</td>
							</tr>
						</volist>
					</tbody>
					<!--  试卷名：
	            	<select name="testid">
	              		<volist name='tlist' id='vo1'>
	                		<option value =	{$vo1.id}>{$vo1.name}</option>
	              		</volist>
	           		 </select>  -->
				</table>
			
				<div align="right" class="green-black" style="width:900px; position:relative; top:20px; left:-35px;">
					{$page}
				</div>
		</div>
		</div>
       </div>
       <script src="__JS__/placeholderIEshow.js"></script>
	</body>
</html>